<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<h:head>
		<title>IVASYS</title>
	</h:head>


	<CENTER>

		<h:form id="loginForm">

			<p:growl id="growl" globalOnly="true"></p:growl>

			<p:panel header="Sistema de IVA"
				style="display:block; width:600px;  position:absolute;    top:50%;    left:50%;    margin-top:-200px;    margin-left:-300px;
">

				<h:panelGrid id="loginPanel" columns="2">

					<h:outputText value="Usuario" />

					<p:inputText id="username" value="#{login.username}"
						required="true"></p:inputText>

					<p:spacer></p:spacer>

					<p:message for="username"></p:message>

					<h:outputText value="Contrasena" />

					<p:password id="password" value="#{login.password}" required="true"
						feedback="false"></p:password>

					<p:spacer></p:spacer>

					<p:message for="password"></p:message>

					<p:spacer></p:spacer>

					<p:commandButton action="#{login.doLogin}" value="Ingresar"
						update="loginForm" ajax="true"></p:commandButton>

				</h:panelGrid>

			</p:panel>

		</h:form>
	</CENTER>

</h:body>
</html>
